package com.base.service.impl;

import com.base.mapper.voipmapper.SelfShopBrowseMapper;
import com.base.po.voip.SelfShopBrowse;
import com.base.po.voip.SelfShopBrowseExample;
import com.base.service.SelfShopBrowseService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("selfShopBrowseService")
public class SelfShopBrowseServiceImpl implements SelfShopBrowseService {
	
	@Autowired
	private SelfShopBrowseMapper selfShopBrowseMapper;


	@Override
	public int countByExample(SelfShopBrowseExample example) {
		return selfShopBrowseMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(SelfShopBrowseExample example) {
		return selfShopBrowseMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return selfShopBrowseMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SelfShopBrowse record) {
		return selfShopBrowseMapper.insert(record);
	}

	@Override
	public int insertSelective(SelfShopBrowse record) {
		return selfShopBrowseMapper.insertSelective(record);
	}

	@Override
	public List<SelfShopBrowse> selectByExample(SelfShopBrowseExample example) {
		return selfShopBrowseMapper.selectByExample(example);
	}

	@Override
	public List<SelfShopBrowse> selectByParentID(Page page, String parentid, String shopid) {
		return selfShopBrowseMapper.selectByParentID(page, parentid, shopid);
	}

	@Override
	public SelfShopBrowse selectByPrimaryKey(Integer id) {
		return selfShopBrowseMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SelfShopBrowse record, SelfShopBrowseExample example) {
		return selfShopBrowseMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SelfShopBrowse record, SelfShopBrowseExample example) {
		return selfShopBrowseMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SelfShopBrowse record) {
		return selfShopBrowseMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SelfShopBrowse record) {
		return selfShopBrowseMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByParentID(String parentid, String shopid) {
		return selfShopBrowseMapper.countByParentID(parentid, shopid);
	}
}
